gdk: Add deprecation guards around deprecated function
authorBenjamin Otte <otte@redhat.com>
Wed, 26 Oct 2016 22:06:36 +0000 (00:06 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 27 Oct 2016 03:03:06 +0000 (05:03 +0200)
gdk/gdkwindow.c

index 5bc9438afad530252e66b55b3e45c65f59a3d03e..242b26204a28be813081ddba2b5c4485584d2c64 100644 (file)
@@ -5048,7 +5048,11 @@ gdk_window_hide (GdkWindow *window)
                                             _gdk_display_get_next_serial (display),
                                             window,
                                             TRUE))
-            gdk_device_ungrab (device, GDK_CURRENT_TIME);
+            {
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+              gdk_device_ungrab (device, GDK_CURRENT_TIME);
+G_GNUC_END_IGNORE_DEPRECATIONS
+            }
         }
 
       window->state = GDK_WINDOW_STATE_WITHDRAWN;